<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>司机车辆路线管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});
	</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
	<div class="ibox">
		<div class="ibox-title">
			<h5>${logisCar.realName}司机路线列表 </h5>
		</div>
    <div class="ibox-content">
	<sys:message content="${message}"/>
	

	
	<!-- 工具栏 -->
	<div class="row">
	<div class="col-sm-12">
		<div class="pull-left">
				<table:addRow url="${ctx}/logis/logisCarRoad/form?openid=${openid}" title="${logisCar.realName}司机车辆路线" label="新增${logisCar.realName}司机路线"></table:addRow><!-- 增加按钮 -->



			</div>
		
	</div>
	</div>
	
	<!-- 表格 -->
	<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
		<thead>
			<tr>
				<th>出发地</th>
				<th>目的地</th>
				<th>报价</th>
				<th>竞争力</th>
				<th>返程报价</th>
				<th>竞争力</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="logisCarRoad">
			<tr>
				<td>
						<c:if test="${not empty logisCarRoad.startProvince}">${logisCarRoad.startProvince}-</c:if>
							${logisCarRoad.startcity}
						<c:if test="${not empty logisCarRoad.startArea}">-${logisCarRoad.startArea}</c:if>
				</td>

				<td>
							<c:if test="${not empty logisCarRoad.endProvince}">${logisCarRoad.endProvince}-</c:if>
							${logisCarRoad.endcity}
							<c:if test="${not empty logisCarRoad.endArea}">-${logisCarRoad.endArea}</c:if>

				</td>
				<td>
						${logisCarRoad.unitPrice}
				</td>
				<td>
						${logisCarRoad.score}
				</td>
				<td>
						${logisCarRoad.returnUnitPrice}
				</td>
				<td>
						${logisCarRoad.score}
				</td>
				<td>
					<fmt:formatDate value="${logisCarRoad.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>

    					<a href="#" onclick="openDialog('修改${logisCar.realName}车辆路线', '${ctx}/logis/logisCarRoad/form?id=${logisCarRoad.id}','800px', '500px')" class="btn btn-success btn-xs" ><i class="fa fa-edit"></i> 修改</a>
						<a href="${ctx}/logis/logisCarRoad/delete?id=${logisCarRoad.id}" onclick="return confirmx('确认要删除该司机${logisCar.realName}车辆路线吗？', this.href)"   class="btn btn-danger btn-xs"><i class="fa fa-trash"></i> 删除</a>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	
		<!-- 分页代码 -->
	<table:page page="${page}"></table:page>
	<br/>
	<br/>
	</div>
	</div>
</div>
</body>
</html>